package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name = "news_bx")
//@NamedQueries({@NamedQuery(name = "NewsBX.findAll", query = "SELECT n FROM NewsBX n"), @NamedQuery(name = "NewsBX.findByUrlB", query = "SELECT n FROM NewsBX n WHERE n.urlB = :urlB")})
public class NewsBX implements Serializable {
	    private static final long serialVersionUID = 1L;
	    @Id
	    @Basic(optional = false)
	    @Column(name = "burl")
	    private String urlB;
	    @Column(name = "xurl")
	    private String urlX;
	    public NewsBX(){
	    	
	    }
	    public NewsBX(String urlB,String urlX){
	    	this.urlB=urlB;
	    	this.urlX=urlX;
	    }
	    
		public String getUrlB() {
			return urlB;
		}
		public void setUrlB(String urlB) {
			this.urlB = urlB;
		}
		public String getUrlX() {
			return urlX;
		}
		public void setUrlX(String urlX) {
			this.urlX = urlX;
		}
	    
		@Override
	    public int hashCode() {
	        int hash = 0;
	        hash += (urlB != null ? urlB.hashCode() : 0);
	        return hash;
	    }

	    @Override
	    public boolean equals(Object object) {
	        if (!(object instanceof NewsBX)) {
	            return false;
	        }
	        NewsBX other = (NewsBX) object;
	        if ((this.urlB == null && other.urlB != null) || (this.urlB != null && !this.urlB.equals(other.urlB))) {
	            return false;
	        }
	        return true;
	    }

	    @Override
	    public String toString() {
	        return "com.dp.vo.NewsBX[urlB=" + urlB + "]";
	    }
}
